// 这个文件用于管理项目的所有的接口
import http from "./http";

// 最受欢迎列表接口
export const ratedApi = (params) => http.get("/rated/list", params);
// 电影列表
export const moviesApi = (params) => http.get("/movies/list", params);
// 上拉加载更多
export const moviesMoreApi = (data) => http.post("/movies/more", data);
// 详情页面
export const detailApi = (data) => http.post("/movies/detail", data);
// 城市列表
export const cityApi = (params) => http.get("/area/list", params);
